//
//  AppLocale.h
//  storeapp
//
//  Created by huangyi on 12-12-10.
//  Copyright (c) 2012年 ios. All rights reserved.
//

#import <Foundation/Foundation.h>

#define LANGFILE @"localization.csv"

@interface LocalizeMgr : NSObject

@property(nonatomic,strong)NSString *langCode;

+(LocalizeMgr*)shared;
-(id)initLocale:(NSString*)langCode;
-(void)loadLocale;
-(NSString*)localizedString:(NSString*)string;
-(BOOL)downloadLocale:(NSString*)urlstring;

@end

extern void LOC_SET(NSString* string);
extern NSString* LOC_STR(NSString* string);
